<%@page import="statics.SoptVars"%>
<%@page import="comm.util.RequestManager"%>
<%@page import="comm.util.SoptHashMap"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	SoptHashMap hm = RequestManager.getRequest(request);
	String redirectPage = "";
	
	if(hm.get("U")!=null){
		TranslateProc.chkUrlCorrect(hm.get("U").toString());
		
		redirectPage = SoptVars.GOOGLETRANSLATE_PAGE_URL + URLEncoder.encode(hm.get("U").toString(),"UTF-8");
	}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="sopt.engSearch.TranslateProc"%>
<%@page import="java.net.URLEncoder"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ESKorea :: Searching Korea for use English</title>
<link href="../css/translated.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="../js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="../js/engTranslated.js"></script>
</head>
<body>
<div id="iframeLayer">
	<iframe id="ifr" src="<%=redirectPage%>" width="100%" height="100%"></iframe>
</div>
<div id="header">
	<span style="float:left">
		<a href="./"><img src="../images/logo.png" alt="ESKorea logo" title="ESKorea" width="90"/></a>
	</span>
	<div style="float:left;">
		<form method="post" action="result.jsp">
			<input maxlength="2048" 
				type="text" name="q" size="45" 
				title="English Search For Visitor to Korea" value="">
			
			<input type="submit" id="searchBtn" value="Search"/>
		</form>
	</div>
	<%if(hm.get("U")!=null){ %>
	<div style="float:left;padding-left:70px;padding-top:6px;">
		<input type="hidden" id="originUrl" value="<%=hm.get("U").toString()%>"/>
		<a href="<%=hm.get("U").toString()%>" title="<%=hm.get("U").toString()%>" style="color:red;font-size:14px;">
			Something wrong? Click here then non-translated(original) page will be load. 
		</a>
	</div>
	<%} %>
	
	<div id="topMenuLayer">
		<a href="./aboutk.jsp">About(KOR)</a>
		|
		<a href="./aboute.jsp">About(ENG)</a>
		|
		<a href="./help.jsp">Help</a>
		|
		<a href="./credits.jsp">Credits</a>
	</div>
</div>
</body>
</html>
